@import './common.scss';
@import './lib.scss';
@import './base.scss';
@import './animation.scss';
/**
 * 响应式布局容器固定宽度
 *
 * 大屏（>=1200px）
 * 中屏（>=992px）
 * 小屏（>=768px）
 */

#app {
    width: 100%;
    height: 100%;
}

html {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    text-size-adjust: 100%;
    font-size: 62.5%;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: inherit;
    font-size: 14px;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizelegibility;
}

a {
    color: inherit;
    text-decoration: inherit;
}

img {
    display: inline-block;
}

ul,
li {
    padding: 0;
    margin: 0;
    list-style: none;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

a,
a:focus,
a:hover {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a:focus,
a:active,
div:focus {
    outline: none;
}

p {
    margin: 0;
}

// 全局form表单样式
:root {
    --el-font-size-base: 12px;
}
.el-form {
    --el-form-label-font-size: var(--el-font-size-base);
    --el-form-inline-content-width: 220px;
}
.el-checkbox {
    --el-checkbox-font-size: 1.2rem;
}

// 取色器样式调整
.el-color-picker__trigger {
    width: 7rem;
    justify-content: space-between;
    .el-color-picker__color {
        width: 2.2rem;
        border: 0;
        .el-color-picker__color-inner {
            border-radius: 0.2rem;
            .el-icon {
                position: absolute;
                right: -3.6rem;
                color: #ccc;
            }
        }
    }
}

// numberbox 数字输入框样式调整
.el-input-number {
    &__decrease {
        background-color: #fff;
        transition: all 0.3s ease-in-out;
        opacity: 0;
    }
    &__increase {
        background-color: #fff;
        transition: all 0.3s ease-in-out;
        opacity: 0;
    }
    &:hover &__decrease {
        opacity: 1;
    }
    &:hover &__increase {
        opacity: 1;
    }
}

// dialog弹窗样式调整
.el-dialog__header {
    position: relative;
    &::before {
        content: '';
        width: calc(100% + 3.2rem);
        height: 0.1rem;
        background-color: #eee;
        position: absolute;
        bottom: 0;
        left: -1.6rem;
        right: -1.6rem;
    }
    .el-dialog__headerbtn {
        font-size: 2.4rem;
        width: 3.4rem;
        height: 3.4rem;
    }
    .title {
        height: 3.8rem;
        display: flex;
        align-items: center;
        &.center {
            justify-content: center;
        }
        .el-radio-group {
            background-color: #f4f4f4;
            border-radius: 5rem;
            .el-radio-button {
                overflow: hidden;
                border-radius: 5rem;
                .el-radio-button__inner {
                    --el-fill-color-blank: #f4f4f4;
                    border: 0;
                    font-size: 1.4rem;
                }
            }
        }
    }
}
.el-dialog__footer {
    position: relative;
    &::before {
        content: '';
        width: calc(100% + 3.2rem);
        height: 0.1rem;
        background-color: #eee;
        position: absolute;
        top: 0;
        left: -1.6rem;
        right: -1.6rem;
    }
}

.el-popover.el-popper {
    min-width: 5rem;
}
// 表格表头字体颜色调整
// 链接弹窗表格用到  ------ start
.el-table {
    thead {
        color: #333;
    }
}
// 链接弹窗表格用到  ------ end

.el-color-predefine__colors .el-color-predefine__color-selector {
    box-shadow: 0 0.2rem 0.8rem rgba(50, 55, 58, 0.1);
}
.el-color-picker .el-color-picker__trigger .el-color-picker__color {
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(135deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(135deg, transparent 75%, #ccc 75%);
    background-size: 12px 12px;
    background-position:
        0 0,
        6px 0,
        6px -6px,
        0 6px;
}

// 全屏轮播大小调整
.loading-custom {
    --el-loading-spinner-size: 13rem;
    --el-loading-fullscreen-spinner-size: 13rem;
}
// el-form-item 子级form-item label样式调整
.form-item-child-label {
    .el-form-item__label {
        color: #999;
        font-size: 1.2rem;
    }
}

// 弹窗样式调整
.dialog-center.el-dialog {
    --el-dialog-margin-top: 0;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: calc(100% - 3rem);
    max-width: calc(100% - 3rem);
}

// 圆形按钮单选框

.btn-radio-round {
    height: 3.8rem;
    display: flex;
    align-items: center;
    &.center {
        justify-content: center;
    }
    .el-radio-group {
        background-color: #f4f4f4;
        border-radius: 5rem;
        .el-radio-button {
            overflow: hidden;
            border-radius: 5rem;
            .el-radio-button__inner {
                --el-fill-color-blank: #f4f4f4;
                border: 0;
                font-size: 1.4rem;
            }
        }
    }
}

.el-form .card {
    .el-form-item:last-child {
        margin-bottom: 0;
    }
}

.el-input-number.is-controls-right .el-input__wrapper {
    padding-left: 10px;
    padding-right: 35px;
}

.el-input__wrapper .el-input__inner {
    text-align: left;
}

// .filter-form-cascader {
//     .el-checkbox,
//     .el-radio {
//         width: 100%;
//         height: 100%;
//         position: absolute;
//         top: 0;
//         left: 0;
//         z-index: 10;
//     }

//     .el-cascader-node {
//         padding-left: 34px;
//     }

//     .el-checkbox__input,
//     .el-radio__input {
//         position: absolute;
//         left: 20px;
//     }
// }

.el-table .table-error-row {
    background: #FFEAEA !important;
    .el-table__cell {
        background: #FFEAEA !important;
    }
}

.el-tabs.content-tabs {
    .el-tabs__header.is-top {
        background: #fff;
        margin: 0;
        padding-bottom: 1rem;
    }
    .el-tabs__item.is-top {
        padding: 0;
        align-items: center;
        width: 10rem;
        font-size: 1.4rem;
    }
    .el-tabs__active-bar{
        width: 100%;
    }
}

.data-tabs-style {
    .card-container {
        padding: 0 !important;
        .flex-row.is-newline {
            flex-direction: column !important;
            align-items: flex-start;
        }
    }
    .data-tabs-line {
        height: 0.1rem !important;
        margin-bottom: 1rem;
        margin-top: 1rem;
    }
}